package com.homework.ch04;
import java.util.Scanner;
public class Test03 {
    public static void main(String[] args) {
        int[][] arr=new int[3][3];
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            for(int j=0;j<arr[i].length;j++)
            {
                arr[i][j]=sc.nextInt();
            }
        }
        sc.close();
       /* for (int[] a:arr) {
            for (int b:arr[]) {

            }
        }*/
        for (int i = 0; i < arr.length; i++) {
            System.out.print("[");
            for(int j=0;j<arr[i].length;j++)
            {
                System.out.print(arr[i][j]);
                if(j<arr[i].length-1)
                {
                    System.out.print(",");
                }

            }
            System.out.print("]");
            System.out.println();
        }

    }
}
